atspi: Fix a variant parser oversight
authorMatthias Clasen <mclasen@redhat.com>
Tue, 13 Oct 2020 19:06:52 +0000 (15:06 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 13 Oct 2020 21:24:06 +0000 (17:24 -0400)
When you pass a variant, the format needs an @.
GVariant is not your friend.

gtk/a11y/gtkatspicontext.c

index d9ce313dfdb1e1e290694e782ac7cd5740dc96dc..8482d40c523ccb0919f38083fa5bb28c13f90ef2 100644 (file)
@@ -422,7 +422,7 @@ handle_accessible_method (GDBusConnection       *connection,
   else if (g_strcmp0 (method_name, "GetApplication") == 0)
     {
       g_dbus_method_invocation_return_value (invocation,
-                                             g_variant_new ("((so))", gtk_at_spi_root_to_ref (self->root)));
+                                             g_variant_new ("(@(so))", gtk_at_spi_root_to_ref (self->root)));
     }
   else if (g_strcmp0 (method_name, "GetChildAtIndex") == 0)
     {